from django.urls import path
from rest_framework import routers

from . import views
router = routers.DefaultRouter()
router.register("prediction_fact", views.PredictionFactViewSet)
router.register("month", views.MonthViewSet)
router.register("event", views.EventViewSet)
router.register(r'predict_report', views.PredictionReportGeneratorViewSet,
                basename='predict_report')
router.register(r'schedule_report', views.ScheduleReportGeneratorViewSet,
                basename='schedule_report')


router.register("user_spec_distribution", views.SpecDistributionViewSet)
urlpatterns = router.urls

urlpatterns += [
    path('', views.index, name='index'),
    path('fill_data/', views.fill_data, name='fill_data'),
    path('predict/', views.predict, name='predict'),
]
